<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FitnessMVC.Data.BlogPost>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Details</h2>

    <fieldset>
        <legend>Fields</legend>
        <p>
            PostId: <br />
            <%= Html.Encode(Model.PostId) %>
        </p>
        <p>
            BlogId:<br />
            <%= Html.Encode(Model.BlogId) %>
        </p>
        <p>
            Title:<br />
            <%= Html.Encode(Model.Title) %>
        </p>
        <p>
            Contents:<br />
            <%= Html.Encode(Model.Contents) %>
        </p>
        <p>
            DatePosted:<br />
            <%= Html.Encode(String.Format("{0:g}", Model.DatePosted)) %>
        </p>
        <p>
            Publish:<br />
            <%= Html.Encode(Model.Publish) %>
        </p>
    </fieldset>
    <p>

        <%=Html.ActionLink("Edit", "Edit", new { id=Model.PostId }) %> |
        <%=Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

